import http from './interface'
export const login = (data) => {
    return http.request({
		url:'app/auth/user/smsLogin',
		data:data,
		dataType: "json",
		method:'post'
	})
}
// getSmsCode
export const getSmsCode = (data)=>{
	return http.request({
		url:`app/resource/sms/appCode?phonenumber=`+data,
		method:'get'
	})
}
export const getUserInfo = (data)=>{
	return http.request({
		url:`app/appsystem/user/queryAppUserInfo`,
		method:'get'
	})
}
// 推出登录
// 127.0.0.1:8080/app/auth/user/logout
export const logout = (data)=>{
	return http.request({
		url:`app/auth/user/logout`,
		method:'get'
	})
}
// 127.0.0.1:8080/app/auth/user/wechatLogin
export const wechatLogin = (data)=>{
	return http.request({
		url:`app/auth/user/wechatLogin`,
		method:'post',
		data:data,
	})
}
// 
// 127.0.0.1:8080/app/appsystem/version/checkVersion?version=1.0.0&versionNumber=1024&deviceType=1//       检查版本更新
export const checkVersion = (version,versionNumber,deviceType)=>{
	return http.request({
		url:`app/appsystem/version/checkVersion?version=${version}&versionNumber=${versionNumber}&deviceType=${deviceType}`,
		method:'get'
	})
}